package com.biz.primus.ms.payment.dao.po;

import com.biz.primus.model.payment.enums.PaymentType;
import com.biz.primus.ms.base.jpa.po.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

/**
 * SupportPaymentPo
 *
 * @author JKLiues
 * @date 2017年11月16日
 */
@Getter
@Setter
@Entity
@Table(name = "tb_sup_payment")
public class SupportPaymentPo extends BaseEntity {
    private static final long serialVersionUID = -2650661192451822898L;

    /**
     * 付款方式代码
     */
    @Column(length = 10, unique = true)
    private String code;

    /**
     * 上级付款代码
     */
    @Column(length = 10)
    private String pCode;

    /**
     * 付款方式名称
     */
    @Column(length = 20)
    private String name;

    /**
     * 付款方式级次
     */
    private Integer level;

    /**
     * 付款类型
     */
    @Column(length = 10)
    private String payType;

    /**
     * 系统内的支付类型
     */
    @Column
    @Enumerated(EnumType.STRING)
    private PaymentType sysType;
}